//
//  SPGoodsCellTableViewCell.m
//  panzer
//
//  Created by 还带大道 on 2018/10/22.
//  Copyright © 2018年 还带大道. All rights reserved.
//

#import "SPGoodsCellTableViewCell.h"
#import "SPGoodsModel.h"

@interface SPGoodsCellTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *imageV;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *guige;
@property (weak, nonatomic) IBOutlet UILabel *price_1;
@property (weak, nonatomic) IBOutlet UILabel *price_2;
@property (weak, nonatomic) IBOutlet UILabel *number;
@end

@implementation SPGoodsCellTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;

}


-(void)setModel:(SPGoodsModel *)model
{
    _model = model;
    [_imageV sd_setImageWithURL:[NSURL URLWithString:model.thumb]];
    _title.text = model.title;
    _guige.text = [NSString stringWithFormat:@"规格："];
    _price_1.text = model.price;
    _price_2.text = model.old_price;
    _number.text = [NSString stringWithFormat:@"X%ld",model.goods_num];
}


@end
